package com.zfx.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class NotVeryUserfulAspect {

	@Pointcut("within(com.zfx.service.MyAopService)")
	private void pointcutWithin1(){
	}

	@Pointcut("within(com.zfx.service.OrderService)")
	private void pointcutWithin2(){
	}

	@Before("pointcutWithin2()")
	public void doAccessCheck(){
		System.out.println("NotVeryUserfulAspect --- before() ");
	}

}
